package com.feeyo.groundservice.checkin.model.api

import com.feeyo.groundservice.checkin.model.CheckInAreaItemBO
import com.feeyo.groundservice.checkin.model.CheckInPerSonBO
import com.feeyo.groundservice.checkin.model.CheckInTaskBO
import com.feeyo.groundservice.checkin.model.CheckInTaskTempBO
import com.feeyo.groundservice.http.core.HttpResult
import retrofit2.http.Body
import retrofit2.http.POST

/**
 *作者：70893 on 2025-10-25
 *描述：
 */
internal interface ICheckInApi {


    /**获取值机任务配置**/
    @POST("checkin/task/config")
    suspend fun getSysConfig(@Body map: Map<String, @JvmSuppressWildcards Any>): HttpResult<List<CheckInTaskTempBO>>

    /**获取值机列表**/
    @POST("task/app/focusView")
    suspend fun getCheckInList(@Body map: Map<String, @JvmSuppressWildcards Any>): HttpResult<List<CheckInTaskBO>>

    /**新增值机**/
    @POST("task/newOrd")
    suspend fun addCheckIn(@Body map: Map<String, @JvmSuppressWildcards Any>): HttpResult<Any>

    /**获取值机人员列表**/
    @POST("checkin/user/list")
    suspend fun getCheckInUserList(@Body map: Map<String, @JvmSuppressWildcards Any>): HttpResult<List<CheckInPerSonBO>>

    /**保存值机人员**/
    @POST("checkin/user/save")
    suspend fun saveCheckInUser(@Body map: Map<String, @JvmSuppressWildcards Any>): HttpResult<Any>

    /**修改值机人员可用状态**/
    @POST("checkin/user/edit")
    suspend fun updateCheckInUserStatus(@Body map: Map<String, @JvmSuppressWildcards Any>): HttpResult<Any>

    /**获取系统值机柜台数据**/
    @POST("checkin/listSimple")
    suspend fun getCheckInAreaList(@Body map: Map<String, @JvmSuppressWildcards Any>): HttpResult<List<CheckInAreaItemBO>>

    /**删除任务**/
    @POST("task/delTask")
    suspend fun delTask(@Body map: Map<String, @JvmSuppressWildcards Any>): HttpResult<Any>

    /**节点更新**/
    @POST("work/updateNode")
    suspend fun updateNode(@Body map: Map<String, @JvmSuppressWildcards Any>): HttpResult<Any>

}